<template>
	<!--全球榜-->
	<div>
		<Crunchies_ :musicImg="songList"></Crunchies_>
		<router-view></router-view>
	</div>
	
</template>

<script>
	import Crunchies_ from "./Crunchies2.vue";
	import jsonp from "jsonp";

	export default {
		name: "Ruanking3",
		data() {
			return {

				src: [""],
				songList: [],
			}
		},
		components: {
			Crunchies_,
		},
		computed: {
		},
		created() {
			//榜单
			jsonp("http://tingapi.ting.baidu.com/v1/restserver/ting?from=qianqian&version=2.1.0&method=baidu.ting.billboard.billList&format=json&type=8&offset=0&size=9）", null, (err, res) => {
				if(err) {
					console.log(err)
				} else {
					console.log(res)
					this.songList = res.song_list;
					this.name = res.billboard.name
				}
			})

		},
	}
</script>

<style scoped lang="scss">

</style>